package com.tengju.user.domain.model.user;

import java.util.concurrent.TimeUnit;

public interface ManageUserRepository {

    ManageUser selectByNameAndPwd(String username, String pwd);

    void saveManageUserCache(String token, ManageUser manageUser, long loginTTL, TimeUnit hours);

    void deleteManageUserCache(String token);

    void addManageUser(String userName, String pwd, String realName);

}
